//
//  NvUploadManager.h
//  NvSellerShowSDK
//
//  Created by roc on 17/9/17.
//  Copyright © 2017年 roc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AssetPackageObject.h"
#import <UIKit/UIKit.h>

@protocol MsUploadManagerDelegate <NSObject>

- (void)uploadTaskfromFile:(NSDictionary *)userInfo
             progressValue:(void (^)(NSProgress *progress))returnBlock
         completionHandler:(void (^)(NSError *error))completionHandler;
// 回执一个dictionary

- (void)orderThemeDataWith:(NSString *)themeOrderUrl;

- (void)initThemeDataWithCompletionHandler:(void(^)(NSArray<NSDictionary *>*,NSString *))completionHandler;
@end

@interface NvUploadManager : NSObject

- (void)uploadTaskfromFile:(NSDictionary *)userInfo
             progressValue:(void (^)(NSProgress *progress))returnBlock
         completionHandler:(void (^)(NSError *error))completionHandler;
- (void)orderThemeDataWith:(NSString *)themeOrderUrl;

- (void)initThemeDataWithCompletionHandler:(void(^)(NSArray <NSDictionary *>* themeArray,NSString *errorDescription))completionHandler;
+ (NvUploadManager *)defaultManager;

@property (nonatomic, weak) id <MsUploadManagerDelegate>delegate;

@end
